.. _syntax-error,-unexpected-token-",",-expecting-")": syntax error, unexpected token ",", expecting ")" ------------------------------------------------- .. meta:: :description: syntax error, unexpected token ",", expecting ")": The ``new`` call was not properly closed with a closing parenthesis, and PHP found a closing square bracket, instead. :og:image: https://php-errors.readthedocs.io/en/latest/_static/logo.png :og:type: article :og:title: syntax error, unexpected token ",", expecting ")" :og:description: The ``new`` call was not properly closed with a closing parenthesis, and PHP found a closing square bracket, instead :og:url: https://php-errors.readthedocs.io/en/latest/messages/syntax-error%2C-unexpected-token-%22%2C%22%2C-expecting-%22%29%22.html :og:locale: en :twitter:card: summary_large_image :twitter:site: @exakat :twitter:title: syntax error, unexpected token ",", expecting ")" :twitter:description: syntax error, unexpected token ",", expecting ")": The ``new`` call was not properly closed with a closing parenthesis, and PHP found a closing square bracket, instead :twitter:creator: @exakat :twitter:image:src: https://php-errors.readthedocs.io/en/latest/_static/logo.png .. raw:: html Description ___________ The ``new`` call was not properly closed with a closing parenthesis, and PHP found a closing square bracket, instead. Example _______ .. code-block:: php Solutions _________ + Add a closing parenthesis after the comma. + Remove the comma, and add a closing parenthesis.